#ifndef NEWS_WIDGET_H
#define NEWS_WIDGET_H

#include <QtGui/QWidget>
#include "ui_news_widget.h"
#include "dt.h"

class news_widget : public QWidget
{
    Q_OBJECT
public:
    int limit,offset;
    QAction* actRef;
public:
    QWidget *my_parent;
    news_widget(QWidget *parent = 0);
    ~news_widget();
    void ReadNews(const int _limit,const int _offset,const bool _fresh=false);
    void SetSoftKeys(QWidget *parent);

private:
    Ui::news_widgetClass ui;
    DtHttp* dh;
    void ReadXml(const QString& xml);

private slots:
    void OnSkMore();
    void OnSkRef();
    void finished(QNetworkReply *reply);
};

#endif // NEWS_WIDGET_H
